/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author ERVIRI
 */
public class Cliente extends Persona{

    public static Cliente load(ResultSet rs)throws SQLException{

	      Cliente c=new Cliente();

               c.setId(rs.getInt(1));
               c.setNombre(rs.getString(2));
               c.setApellidoUno(rs.getString(3));
               c.setApellidoDos(rs.getString(4));
               c.setTelefono(rs.getInt(5));
               c.setDireccion(rs.getString(6));
               c.setEmail(rs.getString(7));
               c.setContraseña(rs.getString(8));

	       return c;
	}


}
